package com.wish.g04.job;

import org.springframework.boot.SpringApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import com.wish.g04.common.security.annotation.EnableCustomConfig;
import com.wish.g04.common.security.annotation.EnableRyFeignClients;
import com.wish.g04.common.swagger.annotation.EnableCustomSwagger2;

import javax.annotation.PostConstruct;

/**
 * 定时任务
 * 
 * @author xumengyang
 */
@EnableCustomConfig
@EnableCustomSwagger2   
@EnableRyFeignClients
@SpringCloudApplication
public class WishJobApplication
{
    public static void main(String[] args)
    {
        SpringApplication.run(WishJobApplication.class, args);
        System.out.println("(♥◠‿◠)ﾉﾞ  定时任务模块启动成功   ლ(´ڡ`ლ)ﾞ  \n" +
                "             _             _      \n" +
                "  __ __ __  (_)     ___   | |_    \n" +
                "  \\ V  V /  | |    (_-<   | ' \\   \n" +
                "   \\_/\\_/  _|_|_   /__/_  |_||_|    \n" +
                " _|\"\"\"\"\"|_|\"\"\"\"\"|_|\"\"\"\"\"|_|\"\"\"\"\"| \n" +
                " \"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\n");

    }

    @PostConstruct
    public void init(){
        // 处理 discard long time none received connection
        System.setProperty("druid.mysql.usePingMethod", "false");
    }
}
